
<fieldset style="border: 1px solid black; padding: 15px; margin: 0 10px 0 10px;">
<legend>MySQL Settings</legend>
<div>
<fieldset style="border: 1px solid; padding: 15px; margin: 0 10px 0 10px">
<legend><?php echo elgg_echo('mysql:host');?></legend>
        
        <label for="params[mysqlhostname]"><?php echo elgg_echo('Hostname');?></label><br/>
        <input type="text" name="params[mysqlhostname]" value="<?php if (empty($vars['entity']->mysqlhostname)) {echo "localhost";} else {echo $vars['entity']->mysqlhostname;}?>"/><br/>
        
        <label for="params[mysqlport]"><?php echo elgg_echo('mysql_port');?></label><br/>
        <input type="text" name="params[mysqlport]" value="<?php if (empty($vars['entity']->mysqlport)) {echo "3306";} else {echo $vars['entity']->mysqlport;}?>"/><br/>
        
        <label for="params[mysqluser]"><?php echo elgg_echo('mysql_user');?></label><br/>
        <input type="text" name="params[mysqluser]" value="<?php if (empty($vars['entity']->mysqluser)) {echo "root";} else {echo $vars['entity']->mysqluser;}?>"/><br/>
        
        <label for="params[mysqlpass]"><?php echo elgg_echo('mysql_pass');?></label><br/>
        <input type="text" name="params[mysqlpass]" value="<?php if (empty($vars['entity']->mysqlpass)) {echo "";} else {echo $vars['entity']->mysqlpass;}?>"/><br/>

        <label for="params[mysqldbname]"><?php echo elgg_echo('mysql_dbname');?></label><br/>
        <input type="text" name="params[mysqldbname]" value="<?php if (empty($vars['entity']->mysqldbname)) {echo "elgg";} else {echo $vars['entity']->mysqldbname;}?>"/><br/>
    </fieldset>
</div>
</fieldset>